package com.jeespring.admin.dao;

import com.jeespring.common.pojo.TreeNode;
import com.jeespring.admin.entity.Resource;
import com.jeespring.admin.entity.ResourceExample;
import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * @description:
 * @author 张朝阳
 * @date 2019/5/3 9:13
 */
public interface ResourceDao {

    int countByExample(ResourceExample example);

    int deleteByExample(ResourceExample example);

    int deleteByPrimaryKey(Long id);

    int insert(Resource record);

    int insertSelective(Resource record);

    List<Resource> selectByExample(ResourceExample example);

    Resource selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") Resource record, @Param("example") ResourceExample example);

    int updateByExample(@Param("record") Resource record, @Param("example") ResourceExample example);

    int updateByPrimaryKeySelective(Resource record);

    int updateByPrimaryKey(Resource record);

    List<TreeNode> getMenuList();
}